
import * as api from './../../api/mainIndex'
const state={
	menuListObj:[]
}

const actions={
	fetchMenuList(context){
		let vm =this;
		api.GetCacheAllList().then(res=>{
		  context.commit('FETCH_MENU_LIST',res.data.result);
		})
	}
}

const mutations={
	FETCH_MENU_LIST(state,res) {
		state.menuListObj = res;
	  }
}

const getters={
	getMenuList:function(state){
		return state.menuListObj;
	  },
}

export default {
	state,
	actions,
	mutations,
	getters
}